$OpenBSD: patch-vcl_Library_vclplug_gtk_mk,v 1.1 2015/05/03 11:30:33 robert Exp $
--- vcl/Library_vclplug_gtk.mk.orig.port	Sat May  2 17:04:07 2015
+++ vcl/Library_vclplug_gtk.mk	Sat May  2 17:05:49 2015
@@ -126,10 +126,10 @@ $(eval $(call gb_Library_add_exception_objects,vclplug
 ))
 endif
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_add_libs,vclplug_gtk,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
 ))
 endif
